<script setup lang="ts">
import DataTree from "@/components/SRComponents/DataTree/index.vue";
import { getSysRoleList } from "@/views/domain/admin/api/sysRole";

const getRoleListAdapter = async (query: any) => {
  const { data } = await getSysRoleList(query);
  return { list: data.list, total: data.total };
};
</script>

<template>
  <DataTree :get-data-list="getRoleListAdapter" />
</template>
<style lang="scss" scoped></style>
